#define  _CRT_SECURE_NO_WARNINGS
using namespace std;
#include<iostream>
#include<list>
#include<string.h>

void test01()
{
	list<int>l1;
	l1.push_back(10);
	l1.push_back(20);
	l1.push_back(30);
	list<int>l2(l1.begin(), l1.end());

	for(list<int>::iterator it = l2.begin();it != l2.end(); it++)
	{
		cout << *it << endl;
	}
}


int main()
{
	test01();
	return 0;
}
